<?php
class Server {
  public static function delete_obj($orm) {
    $req = json_decode(Utils::get_param('req', '[]'));
    
    $th_folder = TH_DIR . $req->folder . '/';
    if (file_exists($th_folder)) {
      Utils::rrmdir($th_folder);
    }
    $orm->delete('pb_theme', $req);
    echo json_encode($req);
  }
}
?>